/*
 * Copyright (c) 2015 smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.common;
/**
 * 常量定义
 * @author KongXiangyu
 * @since 2015-08-05
 */
import java.util.Date;

public class Constants {
    /**系统本次启动日期时间*/
    public static final Date SYSTEM_START_TIME = new Date();
    public static final String CONTENT_TYPE_JSON = "application/json";
    /** JSON格式 */
    public static final String FORMAT_JSON = "json";
    /** XML格式 */
    public static final String FORMAT_XML = "xml";
    /** 金钱格式正则表达式 **/
    public final static String MONEY_REG = "^(([1-9]\\d*)(\\.\\d{1,2})?)$|(0\\.0?([1-9]\\d?))$|0";
    /**手机号码验证表达式*/
    public final static String PHONE_REG="^1[34578]\\d{9}$";
    /** "|"分隔符正则表达式 **/
    public final static String VERTICAL_SEPARATOR_REG = "\\|";
    /** "^"分隔符正则表达式 **/
    public final static String CARET_SEPARATOR_REG = "\\^";
    public static final int DEFAULT_PAGE_SIZE = 20;
    public static final int DEFAULT_PAGE_NO = 1;
    /**登录token缓存时间*/
    public static final int REDIS_KEY_LOGIN_TOKEN_EXPIRE_TIME = 43200;// 60*60*12
    /**平台管理域的Id*/
    public static final Long PLATFORM_MANAGE_RESIDENCE_ID = 1L;

    
}

